3.139 \(\int \cot ^4(e+f x) (a+a \sin (e+f x))^m \, dx\)

Optimal. Leaf size=89 \[ \frac{4 \sqrt{2} \sqrt{1-\sin (e+f x)} \sec (e+f x) (a \sin (e+f x)+a)^{m+3} F_1\left (m+\frac{5}{2};-\frac{3}{2},4;m+\frac{7}{2};\frac{1}{2} (\sin (e+f x)+1),\sin (e+f x)+1\right )}{a^3 f (2 m+5)} \]

[Out]

(4*Sqrt[2]*AppellF1[5/2 + m, -3/2, 4, 7/2 + m, (1 + Sin[e + f*x])/2, 1 + Sin[e + f*x]]*Sec[e + f*x]*Sqrt[1 - S
in[e + f*x]]*(a + a*Sin[e + f*x])^(3 + m))/(a^3*f*(5 + 2*m))

________________________________________________________________________________________

Rubi [A]  time = 0.0993711, antiderivative size = 89, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {2719, 137, 136} \[ \frac{4 \sqrt{2} \sqrt{1-\sin (e+f x)} \sec (e+f x) (a \sin (e+f x)+a)^{m+3} F_1\left (m+\frac{5}{2};-\frac{3}{2},4;m+\frac{7}{2};\frac{1}{2} (\sin (e+f x)+1),\sin (e+f x)+1\right )}{a^3 f (2 m+5)} \]

Antiderivative was successfully verified.

[In]

Int[Cot[e + f*x]^4*(a + a*Sin[e + f*x])^m,x]

[Out]

(4*Sqrt[2]*AppellF1[5/2 + m, -3/2, 4, 7/2 + m, (1 + Sin[e + f*x])/2, 1 + Sin[e + f*x]]*Sec[e + f*x]*Sqrt[1 - S
in[e + f*x]]*(a + a*Sin[e + f*x])^(3 + m))/(a^3*f*(5 + 2*m))

Rule 2719

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*tan[(e_.) + (f_.)*(x_)]^(p_), x_Symbol] :> Dist[(Sqrt[a + b*Si
n[e + f*x]]*Sqrt[a - b*Sin[e + f*x]])/(b*f*Cos[e + f*x]), Subst[Int[(x^p*(a + x)^(m - (p + 1)/2))/(a - x)^((p
+ 1)/2), x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, m}, x] && EqQ[a^2 - b^2, 0] &&  !IntegerQ[m] && Inte
gerQ[p/2]

Rule 137

Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_))^(p_), x_Symbol] :> Dist[(c + d*x)^
FracPart[n]/((b/(b*c - a*d))^IntPart[n]*((b*(c + d*x))/(b*c - a*d))^FracPart[n]), Int[(a + b*x)^m*((b*c)/(b*c
- a*d) + (b*d*x)/(b*c - a*d))^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] &&  !IntegerQ[m] &&
 !IntegerQ[n] && IntegerQ[p] &&  !GtQ[b/(b*c - a*d), 0] &&  !SimplerQ[c + d*x, a + b*x]

Rule 136

Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_))^(p_), x_Symbol] :> Simp[((b*e - a*
f)^p*(a + b*x)^(m + 1)*AppellF1[m + 1, -n, -p, m + 2, -((d*(a + b*x))/(b*c - a*d)), -((f*(a + b*x))/(b*e - a*f
))])/(b^(p + 1)*(m + 1)*(b/(b*c - a*d))^n), x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] &&  !IntegerQ[m] &&  !Int
egerQ[n] && IntegerQ[p] && GtQ[b/(b*c - a*d), 0] &&  !(GtQ[d/(d*a - c*b), 0] && SimplerQ[c + d*x, a + b*x])

Rubi steps

\begin{align*} \int \cot ^4(e+f x) (a+a \sin (e+f x))^m \, dx &=\frac{\left (\sec (e+f x) \sqrt{a-a \sin (e+f x)} \sqrt{a+a \sin (e+f x)}\right ) \operatorname{Subst}\left (\int \frac{(a-x)^{3/2} (a+x)^{\frac{3}{2}+m}}{x^4} \, dx,x,a \sin (e+f x)\right )}{a f}\\ &=\frac{\left (2 \sqrt{2} \sec (e+f x) (a-a \sin (e+f x)) \sqrt{a+a \sin (e+f x)}\right ) \operatorname{Subst}\left (\int \frac{(a+x)^{\frac{3}{2}+m} \left (\frac{1}{2}-\frac{x}{2 a}\right )^{3/2}}{x^4} \, dx,x,a \sin (e+f x)\right )}{f \sqrt{\frac{a-a \sin (e+f x)}{a}}}\\ &=\frac{4 \sqrt{2} F_1\left (\frac{5}{2}+m;-\frac{3}{2},4;\frac{7}{2}+m;\frac{1}{2} (1+\sin (e+f x)),1+\sin (e+f x)\right ) \sec (e+f x) \sqrt{1-\sin (e+f x)} (a+a \sin (e+f x))^{3+m}}{a^3 f (5+2 m)}\\ \end{align*}

Mathematica [F]  time = 0.740835, size = 0, normalized size = 0. \[ \int \cot ^4(e+f x) (a+a \sin (e+f x))^m \, dx \]

Verification is Not applicable to the result.

[In]

Integrate[Cot[e + f*x]^4*(a + a*Sin[e + f*x])^m,x]

[Out]

Integrate[Cot[e + f*x]^4*(a + a*Sin[e + f*x])^m, x]

________________________________________________________________________________________

Maple [F]  time = 0.294, size = 0, normalized size = 0. \begin{align*} \int \left ( \cot \left ( fx+e \right ) \right ) ^{4} \left ( a+a\sin \left ( fx+e \right ) \right ) ^{m}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(f*x+e)^4*(a+a*sin(f*x+e))^m,x)

[Out]

int(cot(f*x+e)^4*(a+a*sin(f*x+e))^m,x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (f x + e\right ) + a\right )}^{m} \cot \left (f x + e\right )^{4}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)^4*(a+a*sin(f*x+e))^m,x, algorithm="maxima")

[Out]

integrate((a*sin(f*x + e) + a)^m*cot(f*x + e)^4, x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (a \sin \left (f x + e\right ) + a\right )}^{m} \cot \left (f x + e\right )^{4}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)^4*(a+a*sin(f*x+e))^m,x, algorithm="fricas")

[Out]

integral((a*sin(f*x + e) + a)^m*cot(f*x + e)^4, x)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)**4*(a+a*sin(f*x+e))**m,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (f x + e\right ) + a\right )}^{m} \cot \left (f x + e\right )^{4}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)^4*(a+a*sin(f*x+e))^m,x, algorithm="giac")

[Out]

integrate((a*sin(f*x + e) + a)^m*cot(f*x + e)^4, x)